<template>
  <div class="evidence-item">
    <slot name="left">
      <span class="left-word">{{ leftWord }}</span>
    </slot>
    <slot name="right">
      <span class="right-word">{{ rightWord }}</span>
    </slot>
  </div>
</template>

<script setup lang="ts">

const {leftWord, rightWord} = defineProps({
  leftWord: {
    type: String,
    default: "收货信息："
  },
  rightWord: {
    type: String,
    default: "晨晨，15006018575，福建省 厦门市 集美区 软件园B区9906"
  }
})
</script>

<style scoped lang="less">
@import "src/assets/css/mixins";

.evidence-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;

  .left-word {
    margin-right: 60px;
    flex-shrink: 0;
    font-size: 14px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .right-word {
    font-size: 14px;
    color: #999;
    .clamp(3);
  }
}
</style>
